from gravityassist.config import get_options

def set_assistant_temperature(temperature: float):
    if temperature < 0.0 or temperature > 1.0:
        return {'success': False, 'message': 'Temperature value must be between 0.0 and 1.0.'}
    get_options()["temperature"] = temperature
    return {'success': True, 'message': 'Assistant temperature set to ' + str(temperature)}
